<!-- Pedro Paulo Pereira Reis - Varginha/MG -->
<!-- Copie todo cdigo e modifique em seu editor -->

<html>
<head>
<title>HG</title>
<script>defaultStatus="<HTML> Guide"</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../estilo.css">

<script language="JavaScript">
var CurrentMsg = 'Oi ! ';                    
function update(msg) {                           
	var pad_str="";                           
	n = msg.length;                           
	if(n<72) {                                   
		pad = (73-n)/2;                                   
		for(var i=0; i<pad; i++) {                                           
			pad_str+=" ";                        
		}                        
	}                          
	CurrentMsg = pad_str + msg;                           
	document.messages.field.value = CurrentMsg; clearTimeout(timer);                           
	timer = setTimeout("idleMsg()",1500);        
}                           
function MakeArray(n) {                           
	this.length=n;                           
	for(var i = 1; i<= n; i++) {                                   
	this[i] = "";                
	}                           
	return(this);        
	}               
	var index = 1;           
	var notice_num = 5;                   
	var notices = new MakeArray(notice_num);        
	notices[1] = "Sua mensagem aparece aqui";        
	notices[2] = "Seo JavaScript";
	notices[3] = "Este script  bom para mostrar...";        
	notices[4] = "algum tipo de notcia";
	notices[5] = "";        
	var timer = setTimeout('idleMsg()',1650);                   
function nochange() {                           
	document.messages.field.value = CurrentMsg;        
}                   
function idleMsg() {                           
	update(notices[index++]);                           
	if(index>notice_num) { 
		index=1; 
	}  
}          
</script>

</head>
<body topmargin="3" leftmargin="3" bgproperties="fixed" bgcolor="#FFFFFF" text="#000000" background="../imagens/fundo_dir.gif" link="#000080" vlink="#666666" alink="#ffcc00">
<table width="450" border="0"><tr><td width="10"></td>
<td width="440"><img src="../imagens/js_logo2.gif" width="261" height="52">
<hr size="2">
<p><img src="../imagens/bullet.gif" width="6" height="8"><font color="#000080" face="Arial, Verdana" size="2"><b> 
Mensagem Alternada</b><br>
</font> <font face="Arial, Verdana" size="2">Exibe uma mensagem diferente 
a cada instante.</font></p>         

<form name="messages" onSubmit="return false">
<input type="text" name="field" size="50" value onFocus="self.status='Aguarde'; return true" onChange="nochange()">
</form>

<form><input type="button" value="C&oacute;digo Fonte" onClick= 'window.location = "view-source:" + window.location.href'><br><font face="Arial, Verdana" size="1">Clique no bot&atilde;o para ver o  c&oacute;digo do exemplo.</font></form>
<hr size="2"><font face="Arial, Verdana" size="2" color="#999999"><b>HTML Guide - http://htmlbr.cjb.net</b></font></td>
</tr></table>
</body>
</html>